#include <stdio.h>
/**
Input://start with N
2
1 2
3 4
Output
3
7
*/
int main(){
  int N;
  scanf("%d\n", &N);
  int a, b;
  while (N--){
    scanf("%d%d", &a, &b);
    printf("%d\n", a + b);
  }
  return 0;
}
